package com.aaa.mapper;

import com.aaa.entity.Facility;
import com.aaa.entity.Roomtype;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface RoomtypeMapper {
    /**
     * 查询所有房间
     *
     * @return
     */
    List<Map<String, Object>> findtype();

    List<Roomtype> roomfind(String patyname);

    List<Facility> findFacilityByRid();

    Integer add(Roomtype roomType);

    /**
     * 查询房间类型唯一
     * @param typename 房间类型值
     * @return 数据
     */
    List<Map<String,Object>> query(@Param("id")Integer id,@Param("typename") String typename);

    Roomtype toedit(Integer id);

    Integer update(Roomtype roomType);


}
